import React from 'react';
import { changePage } from '../../store/actions'
import { connect } from 'react-redux'
import FormEditSpecialist from '../../components/formEditSpecialist'
class SpecialistAdd extends React.Component{
    constructor(props){
        super(props);
    }
    render(){
        return (
            <FormEditSpecialist user = {this.props.user} dispatch = {this.props.dispatch} />
        )
    }
}
export default SpecialistAdd = connect((state)=>{
    const {user} = state.rootReducer;
    return {user}
})(SpecialistAdd)